<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./whichBrowser.js"></script>
</head>

<body>
  <div id="ua"></div>
  <div id="phone" style="word-break: break-all;"></div>
  <script>
    document.querySelector('#ua').innerHTML = navigator.userAgent;
    getPhone();
    setTimeout(() => {
      document.querySelector('#phone').innerHTML = JSON.stringify(getPhone())
    }, 0);
  </script>
</body>

</html>